package com.atguigu.yygh.apartment.service;

import com.atguigu.yygh.model.hosp.ApartmentInfo;
import com.atguigu.yygh.model.hosp.ApartmentInfoEvVo;
import com.atguigu.yygh.vo.hosp.ApartmentInfoQueryVo;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface ApartmentInfoService {

    //上传宿舍接口
    void save(Map<String, Object> paramMap);
    //上传宿舍接口
    void save(ApartmentInfoEvVo apartmentInfoEvVo) throws JsonProcessingException;

    //根据编号查询
    ApartmentInfo getByApartmentCode(String apartmentCode);

    //宿舍列表分页
    Page<ApartmentInfo> selectApartmnetInfoPage(Integer page, Integer limit, ApartmentInfoQueryVo apartmentInfoQueryVo);

    //更改状态
    void updateStatus(String id, Integer status);

    //获取宿舍详情
    Map<String,Object> getApartmentInfoById(String id);

    List<ApartmentInfo> findByApartmentName(String apartmentName);

    Map<String, Object> findApartmentDeatil(String apartmentCode);
}
